<div>
    <ul class="pagination">
        {% for i in range(1, nav['num']+1) %}
            <li id="page-{{ i }}"><a href="/{{ nav['model'] }}/page/{{ i }}">{{ i }} <span class="sr-only">(current)</span></a></li>
        {% end %}
    </ul>
</div>